package com.slofzx.nuoda.daqing.wechat.feign;

import com.slofzx.nuoda.daqing.wechat.dto.WechatDataDTO;
import com.slofzx.nuoda.daqing.wechat.vo.WechatResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(name = "wechat", url = "http://dqmds.petrochina/uimservice/wechat")
public interface WechatClient {
    /**
     * 发送即时通消息
     * @param dto
     * @return
     */
    @ResponseBody
    @PostMapping("/send")
    WechatResultVO sendMessage(@RequestBody WechatDataDTO dto);
}
